#include<iostream>
#define MAX 100
int main()
{
	int a[MAX],i,n,P=1,S=0,E=0;
	std::cout<<"n=";
	std::cin>>n;
	std::cout<<"dati elementele sirului:\n";
	for(i=0;i<n;i++)
		{
			std::cout<<"a["<<i<<"]=";
			std::cin>>a[i];
		}
	for(i=0;i<n;i++)
		{
			S=S+a[i];
			P=P*a[i];
		}
	E=S+P;
	std::cout<<"Produsul= "<<P;
	std::cout<<"\nSuma= "<<S;
	std::cout<<"\nE=S+P="<<E<<"\n";
	return 0;
}
